home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / ARCH-VNC / SERIAL.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  44 lines

  1. /*
  2.  * linux/include/asm-arm/arch-vnc/serial.h
  3.  *
  4.  * Copyright (c) 1996 Russell King.
  5.  *
  6.  * Changelog:
  7.  *  15-10-1996    RMK    Created
  8.  *  03-05-1998    RMK    Modified for Corel Video NC
  9.  */
  10. #ifndef __ASM_ARCH_SERIAL_H
  11. #define __ASM_ARCH_SERIAL_H
  12.  
  13. #include <asm/irq.h>
  14.  
  15. /*
  16.  * This assumes you have a 1.8432 MHz clock for your UART.
  17.  *
  18.  * It'd be nice if someone built a serial card with a 24.576 MHz
  19.  * clock, since the 16550A is capable of handling a top speed of 1.5
  20.  * megabits/second; but this requires the faster clock.
  21.  */
  22. #define BASE_BAUD (1843200 / 16)
  23.  
  24. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
  25.  
  26.      /* UART CLK        PORT  IRQ     FLAGS        */
  27. #define SERIAL_PORT_DFNS \
  28.     { 0, BASE_BAUD, 0x3F8, IRQ_UART    , STD_COM_FLAGS },    /* ttyS0 */    \
  29.     { 0, BASE_BAUD, 0x2F8, IRQ_UART2, STD_COM_FLAGS },    /* ttyS1 */    \
  30.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS2 */    \
  31.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS3 */    \
  32.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },     /* ttyS4 */    \
  33.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS5 */    \
  34.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS6 */    \
  35.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS7 */    \
  36.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS8 */    \
  37.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS9 */    \
  38.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS10 */    \
  39.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS11 */    \
  40.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS12 */    \
  41.     { 0, BASE_BAUD, 0    , 0    , STD_COM_FLAGS },    /* ttyS13 */
  42.  
  43. #endif
  44.